import java.util.concurrent.TimeUnit;

/**
 * Created by Kate on 09.12.2014.
 */
public class PoolFactoryImpl implements PoolFactory {
    @Override
    public ConnectionPool newConnectionPool(int capacity, ConnectionSource src) {
        return new FixedCapacityConnectionPool(capacity, src);
    }

    @Override
    public ConnectionPool newConnectionPool(int init, int max, long keepAliveTime, TimeUnit unit, ConnectionSource src) {
        return new VariableCapacityConnectionPool(init, max, keepAliveTime, unit, src);
    }
}
